package com.example.guardian.personalcenter;

import androidx.appcompat.app.ActionBar;
import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;

import com.example.guardian.R;

public class AboutSoftware extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.personal_center_about_software);
        ActionBar actionBar = getSupportActionBar();
        if (actionBar != null){
            actionBar.hide();
        }
        Button back_button = findViewById(R.id.about_software_back_btn);
        back_button.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                AboutSoftware.this.finish();
            }
        });
        Button button_update = findViewById(R.id.button_update);
        button_update.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Toast.makeText(AboutSoftware.this, "已是最新版本", Toast.LENGTH_SHORT).show();
            }
        });
        Button button_remark = findViewById(R.id.button_remark);
        button_remark.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Toast.makeText(AboutSoftware.this, "感谢您的好评，我们继续努力！", Toast.LENGTH_SHORT).show();
            }
        });
    }
}